<div class="tableToolbar">
    <div class="coll-md-8" id="addInput">
        <div class="coll-md-2">
            <input type="text" class='search' placeholder="项目名称" ng-model="ctrlScope.itemsearch.itemName">
        </div>

        <div class="coll-md-15 scalenone" id="search2">

            <div class="coll-md-10 triangle">

                <select class="form-control" ng-model="ctrlScope.itemsearch.itemRepayMethod">
                    <option value="" disabled selected hidden>还款方式</option>
                    <option  value=''>全部</option>
                    <option  value="1">一次性还款</option>
                    <option  value="2">等额本息</option>
                    <option  value="3">先息后本</option>
                    <option  value="4">每日付息</option>
                    <option  value="5">等额本金</option>

                </select>
            </div>
        </div>
        <div class="coll-md-4 scalenone" id="searchdate" datahide>
            <div class="coll-md-5">
                <p class="input-group">
                    <input type="text" class="search" placeholder="开始时间" uib-datepicker-popup="yyyy-MM-dd"
                           ng-model="ctrlScope.itemsearch.beginDateX" is-open="popup1.opened"
                           datepicker-options="dateOptions"/>
                    <span class="input-group-btn">
							            <button type="button" class="small-icon btn btn-default" ng-click="open1()"><i
                                                class="glyphicon glyphicon-calendar"></i></button>
							          </span>
                </p>
            </div>
            <div class="coll-md-5">
                <p class="input-group inline">
                    <input type="text" class="search" placeholder="结束时间" uib-datepicker-popup="yyyy-MM-dd"
                           ng-model="ctrlScope.itemsearch.endDateX" is-open="popup2.opened"
                           datepicker-options="dateOptions"/>
                    <span class="input-group-btn">
							            <button type="button" class="small-icon btn btn-default" ng-click="open2()"><i
                                                class="glyphicon glyphicon-calendar"></i></button>
							          </span>
                </p>
            </div>
        </div>
        <div class="coll-md-2">
            <input type="button" class="small-icon search2-icon" value="搜索" ng-click="search()">
            <input type="button" class="small-icon search2" value="搜索">
            <input type="button" class="small-icon reset-icon" reset-icon value="重置" ng-click="reset()">
            <input type="button" class="small-icon reset" value="重置">

            <div class="dropdown-menu-right">
                <input type="button" class="small-icon more-icon" value="更多" title='更多搜索项' id="more-icon"
                       data-toggle="dropdown"
                       aria-haspopup="true" aria-expanded="false">
                <input type="button" class="small-icon more" value="更多">
                <ul class="dropdown-menu" style='margin-left:80px;' aria-labelledby="dropdownMenu2" more-search>
                    <li><a href="javascript:;">日期搜索</a></li>
                    <li><a href="javascript:;">项目类型搜索</a></li>
                </ul>
            </div>

        </div>
    </div>

    <div class="coll-md-2">

    </div>
</div>
<table style="margin-bottom:20px;width:30%;">
    <tr>
        <td class="blue">
            <h6>待初审项目</h6>
            <h4>{{ctrlScope.count.FirstItemNum}}个</h4>
        </td>
        <td class="red">
            <h6>待初审金额</h6>
            <h4>{{ctrlScope.count.FirstItemAccount}}元</h4>
        </td>
    </tr>
</table>

<table ui-table="orderParams">
    <thead>
    <tr>
        <th>ID</th>
        <th>项目名称</th>
        <!--<th>类型</th>-->
        <th>金额</th>
        <th>期限</th>
        <th>利率</th>
        <!--<th>服务费</th>-->
        <!--<th>进度</th>-->
        <th>还款方式</th>
        <th>更新时间</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr ng-repeat="item in orderParams.$rows">
        <td>{{item.id}}</td>
        <td>{{item.itemName}}</td>
        <!--<td><button type="button" class="btn green btn-xs" ng-if="item.itemIsnew!=1">{{item.itemType | itemType}}</button><button type="button" class="btn green btn-xs" ng-if="item.itemIsnew==1">新手标</button><button type="button" class="btn red btn-xs" ng-if="item.itemIsrecommend==1">推荐</button></td>-->
        <td>{{item.itemAccount | currency:'￥'}}</td>
        <td>{{item.itemCycle}}{{item.itemCycleUnit | cycleUnit}}</td>
        <td>{{item.itemRate }}%+{{item.itemAddRate}}%</td>
        <!--<td>{{item.itemServeRate}}%</td>-->
        <!--<td>{{item.itemScale}}%</td>-->
        <td>{{item.itemRepayMethod | repayMethod}}</td>
        <td>{{item.updateTime |date:'y-MM-dd HH:mm:ss'}}</td>
        <td title="操作">
            <a ng-click="openViewModal(item.id)">待初审</a>
        </td>
    </tr>
    </tbody>
</table>

<modal title="项目初审" visible="viewItemModal">
    <form class="form-horizontal" role="form" name="myForm" ng-submit="submitForm(myForm.$valid)" novalidate>
        <div class="form-body">
            <ul id="myTab1" class="nav nav-tabs">
                <li class="active"><a  href="#item21" data-toggle="tab" ng-click="info()">项目信息</a></li>
                <!--<li><a  href="#item26" data-toggle="tab">图片信息</a></li>-->
                <li><a  href="#item25" data-toggle="tab" ng-click="info()">项目时间</a></li>
                <!--<li><a  href="#item24" data-toggle="tab" ng-click="control()">风控信息</a></li>-->
                <li><a href="#item27" data-toggle="tab">产品图片</a></li>
                <!--<li><a  href="#item23" data-toggle="tab" ng-click="invest()">投资记录</a></li>-->
                <li><a href="#item2" data-toggle="tab">审核信息</a></li>
            </ul>
            <div class="scrollArea">
                <div class="tab-content" style="margin-top:10px;">
                    <div class="tab-pane fade in active" id="item21" >
                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="control-label col-md-4">项目名称</label>
                                    <div class="col-md-8">
                                        <input type="text" class="form-control" ng-model="ctrlScope.item.itemName" readonly>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="control-label col-md-4">借款人</label>
                                    <div class="col-md-8">
                                        <input class="form-control" type="text" ng-model="ctrlScope.item.loanUser" readonly>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="control-label col-md-4">借款金额</label>
                                    <div class="col-md-8">
                                        <input type="text" class="form-control" ng-value="ctrlScope.item.itemAccount+'元'"  readonly="readonly">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="control-label col-md-4">借款利率</label>
                                    <div class="col-md-8">
                                        <input type="text" class="form-control" ng-value="ctrlScope.item.itemRate+'%'"  readonly="readonly">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="control-label col-md-4">加息利率</label>
                                    <div class="col-md-8">
                                        <input type="text" class="form-control" ng-value="ctrlScope.item.itemAddRate+'%'"  readonly="readonly">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="control-label col-md-4">借款期限</label>
                                    <div class="col-md-8">
                                        <input type="text" class="form-control" ng-value="ctrlScope.item.itemCycle+(ctrlScope.item.itemCycleUnit | cycleUnit)"  readonly="readonly">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="control-label col-md-4">还款方式</label>
                                    <div class="col-md-8">
                                        <input type="text" class="form-control" ng-value="ctrlScope.item.itemRepayMethod | repayMethod"  readonly="readonly">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="control-label col-md-4">起投资金</label>
                                    <div class="col-md-8">
                                        <input type="text" class="form-control" ng-model="ctrlScope.item.itemSingleMinInvestment"  readonly="readonly">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="control-label col-md-4">项目最高投资</label>
                                    <div class="col-md-8">
                                        <input type="text" class="form-control" ng-model="ctrlScope.item.itemMaxInvestment"  readonly="readonly">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="control-label col-md-4">结束时间</label>
                                    <div class="col-md-8">
                                        <input type="text" class="form-control" ng-value="ctrlScope.item.endTime | date:'y-MM-dd HH:mm:ss'" readonly />
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="control-label col-md-4">定时发标时间</label>
                                    <div class="col-md-8">
                                        <input type="text" class="form-control" ng-model="ctrlScope.item.releaseTime" readonly />
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="control-label col-md-4">是否可债转</label>
                                    <div class="col-md-8">
                                        <input type="text"  class="form-control" name='debtTransferable' ng-value="ctrlScope.item.debtTransferable | debtTransferable" readonly="readonly">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6" ng-show="ctrlScope.item.debtTransferable==1">
                                <div class="form-group">
                                    <label class="control-label col-md-4">债转服务费</label>
                                    <div class="col-md-8 percent">
                                        <input type="number"   class="form-control" name='debtServeFeeRate' ng-model="ctrlScope.item.debtServeFeeRate" readonly="readonly">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="control-label col-md-4">是否新手标</label>
                                    <div class="col-md-8">
                                        <select class="form-control" disabled   ng-model="ctrlScope.item.itemIsnew">
                                            <option value="">请选择</option>
                                            <option value="1">是</option>
                                            <option value="0">否</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="control-label col-md-4">是否推荐标</label>
                                    <div class="col-md-8">
                                        <select class="form-control" disabled   ng-model="ctrlScope.item.itemIsrecommend">
                                            <option value="">请选择</option>
                                            <option value="1">是</option>
                                            <option value="0">否</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-2">
                                <div class="form-group">
                                    <label class="control-label col-md-12">借款内容</label>
                                </div>
                            </div>
                            <div class="col-md-10">
                                <div class="form-group">
                                    <div class="col-md-12" >
                                        <div ng-bind-html="ctrlScope.item.itemDesc" style="border:1px solid #ccc;border-radius: 4px;padding:8px;min-height:70px;width:100%;overflow: auto"></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="tab-pane fade" id="item27" >
                        <div class="col-md-12" style="margin: 20px 0;font-size: 18px;background: #efeff5;padding: 10px 0">
                            <strong>个人资料</strong>
                        </div>
                        <div class="row">
                            <div class="col-md-12">
                                <ul style="margin-top: -15px;display: inline-block;float: left;width: 860px">
                                    <li data-slierPics="{{imgs}}"
                                        ng-repeat="img in personalImgs track by $index"
                                        style="width:210px;height:160px;float: left;display:inline;position:relative;margin-top: 20px;text-align: center;">
                                        <img src="{{img.picturePath}}" width="150" height="150"/>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div class="col-md-12" style="margin: 20px 0;font-size: 18px;background: #efeff5;padding: 10px 0">
                            <strong>资产图片</strong>
                        </div>
                        <div class="row">
                            <div class="col-md-12">
                                <ul style="margin-top: -15px;display: inline-block;float: left;width: 860px">
                                    <li data-slierPics="{{imgs}}"
                                        ng-repeat="img in carImgs track by $index"
                                        style="width:210px;height:160px;float: left;display:inline;position:relative;margin-top: 20px;text-align: center;">
                                        <img src="{{img.picturePath}}" width="150" height="150"/>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div class="col-md-12" style="margin: 20px 0;font-size: 18px;background: #efeff5;padding: 10px 0">
                            <strong>相关手续</strong>
                        </div>
                        <div class="row">
                            <div class="col-md-12">
                                <ul style="margin-top: -15px;display: inline-block;float: left;width: 860px">
                                    <li data-slierPics="{{imgs}}"
                                        ng-repeat="img in procedureImgs track by $index"
                                        style="width:210px;height:160px;float: left;display:inline;position:relative;margin-top: 20px;text-align: center;">
                                        <img src="{{img.picturePath}}" width="150" height="150"/>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                    <div id="item25" class="tab-pane fade" >
                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="control-label col-md-4">发标时间</label>
                                    <div class="col-md-8">
                                        <input type="text" class="form-control" ng-value="ctrlScope.time.releaseTime | date:'y-MM-dd HH:mm:ss'"  readonly="readonly">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="control-label col-md-4">初审时间</label>
                                    <div class="col-md-8">
                                        <input type="text" class="form-control" ng-value="ctrlScope.time.firstTime | date:'y-MM-dd HH:mm:ss'"  readonly="readonly">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="control-label col-md-4">满标时间</label>
                                    <div class="col-md-8">
                                        <input type="text" class="form-control" ng-value="ctrlScope.time.fullTime | date:'y-MM-dd HH:mm:ss'"  readonly="readonly">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="control-label col-md-4">复审时间</label>
                                    <div class="col-md-8">
                                        <input type="text" class="form-control" ng-value="ctrlScope.time.complexTime | date:'y-MM-dd HH:mm:ss'"  readonly="readonly">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="control-label col-md-4">还款时间</label>
                                    <div class="col-md-8">
                                        <input type="text" class="form-control" ng-value="ctrlScope.time.stillTime | date:'y-MM-dd HH:mm:ss'" readonly="readonly">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6">
                            </div>
                        </div>
                    </div>
                    <!--<div id="item24" class="tab-pane fade" >-->
                        <!--<div class="row">-->
                            <!--<div class="col-md-12">-->
                                <!--<div class="form-group">-->
                                    <!--<label class="control-label col-md-2">资金安全</label>-->
                                    <!--<div class="col-md-10">-->
                                        <!--<textarea class="form-control" name="fundSecurity" readonly ng-model="ctrlScope.item.fundSecurity" disabled></textarea>-->
                                    <!--</div>-->
                                <!--</div>-->
                            <!--</div>-->
                            <!--<div class="col-md-12">-->
                                <!--<div class="form-group">-->
                                    <!--<label class="control-label col-md-2">风控措施</label>-->
                                    <!--<div class="col-md-10">-->
                                        <!--<textarea class="form-control" name="riskControlMeasures" readonly ng-model="ctrlScope.item.riskControlMeasures" disabled></textarea>-->
                                    <!--</div>-->
                                <!--</div>-->
                            <!--</div>-->
                        <!--</div>-->
                        <!--<div class="col-md-12" style="margin: 20px 0;font-size: 18px;background: #efeff5;padding: 10px 0">-->
                            <!--<strong>风控垫付</strong>-->
                        <!--</div>-->
                        <!--<div class="row">-->
                            <!--<div class="col-md-12">-->
                                <!--<ul style="margin-top: -15px;display: inline-block;float: left;width: 860px">-->
                                    <!--<li data-slierPics="{{riskImgs}}"-->
                                        <!--ng-repeat="img in riskImgs track by $index"-->
                                        <!--style="width:210px;height:160px;float: left;display:inline;position:relative;margin-top: 20px;text-align: center;">-->
                                        <!--<img src="{{img.picturePath}}" width="150" height="150"/>-->
                                    <!--</li>-->
                                <!--</ul>-->
                            <!--</div>-->
                        <!--</div>-->
                        <!--<div class="col-md-12" style="margin: 20px 0;font-size: 18px;background: #efeff5;padding: 10px 0">-->
                            <!--<strong>技术保障</strong>-->
                        <!--</div>-->
                        <!--<div class="row">-->
                            <!--<div class="col-md-12">-->
                                <!--<ul style="margin-top: -15px;display: inline-block;float: left;width: 860px">-->
                                    <!--<li data-slierPics="{{skillImgs}}"-->
                                        <!--ng-repeat="img in skillImgs track by $index"-->
                                        <!--style="width:210px;height:160px;float: left;display:inline;position:relative;margin-top: 20px;text-align: center;">-->
                                        <!--<img src="{{img.picturePath}}" width="150" height="150"/>-->
                                    <!--</li>-->
                                <!--</ul>-->
                            <!--</div>-->
                        <!--</div>-->
                    <!--</div>-->
                    <!--<div id="item23" class="tab-pane fade" >-->

                        <!--<button class="small-icon btn btn-default pos-right" style='margin-right:8px;' ng-click="recordDownload()">-->
                            <!--<i class="fa fa-download" ></i>-->
                        <!--</button>-->

                        <!--<table ui-table="orderParams1">-->

                            <!--<thead>-->
                            <!--<tr>-->
                                <!--<th>用户名</th>-->
                                <!--<th>投资金额</th>-->
                                <!--<th>应收总额</th>-->
                                <!--<th>应收本金</th>-->
                                <!--<th>应收利息</th>-->
                                <!--<th>投资类型</th>-->
                                <!--<th>投标时间</th>-->

                            <!--</tr>-->
                            <!--</thead>-->
                            <!--<tbody>-->

                            <!--<tr ng-repeat="item in orderParams1.$rows">-->
                                <!--<td>{{item.mobile}}</td>-->
                                <!--<td>{{item.investDealAmount}}元</td>-->
                                <!--<td>{{item.collectAmount}}元</td>-->
                                <!--<td>{{item.collectPrincipal}}元</td>-->
                                <!--<td>{{item.collectInterest}}元</td>-->
                                <!--<td>{{item.investType | investType}}</td>-->
                                <!--<td>{{item.addtime | date:'y-MM-dd HH:mm:ss'}}</td>-->
                            <!--</tr>-->
                            <!--</tbody>-->
                        <!--</table>-->

                    <!--</div>-->
                    <div id="item2" class="tab-pane fade">
                        <!--<div class="row">-->
                            <!--<div class="col-md-2">-->
                                <!--<div class="form-group">-->
                                    <!--<label class="control-label col-md-12">是否定时</label>-->
                                <!--</div>-->
                            <!--</div>-->
                            <!--<div class="col-md-10">-->
                                <!--<div class="form-group">-->
                                    <!--<div class="col-md-12">-->
                                        <!--<label class="radio-inline">-->
                                            <!--<input type="radio" name="countdown" value="1"-->
                                                   <!--ng-model="ctrlScope.first.countdown" required>-->
                                            <!--是 </label>-->
                                        <!--<label class="radio-inline">-->
                                            <!--<input type="radio" name="countdown" value="0"-->
                                                   <!--ng-model="ctrlScope.first.countdown" required>-->
                                            <!--否 </label>-->
                                    <!--</div>-->
                                <!--</div>-->
                            <!--</div>-->
                        <!--</div>-->
                        <!--<div class="row" ng-if="ctrlScope.first.countdown==1">-->
                            <!--<div class="col-md-2">-->
                                <!--<div class="form-group">-->
                                    <!--<label class="control-label col-md-12">发布时间</label>-->
                                <!--</div>-->
                            <!--</div>-->
                            <!--<div class="col-md-10">-->
                                <!--<div class="form-group">-->
                                    <!--<div class="col-md-3">-->
                                        <!--<p class="input-group inline">-->
                                            <!--<input type="text" class="form-control" placeholder="年 - 月 - 日"-->
                                                   <!--uib-datepicker-popup="yyyy-MM-dd"-->
                                                   <!--ng-model="ctrlScope.first1.releaseTime" is-open="popup4.opened"-->
                                                   <!--datepicker-options="dateOptions"-->
                                                   <!--required/>-->
                                            <!--<span class="input-group-btn">-->
							            <!--<button type="button" class="btn btn-default" ng-click="open4()"><i-->
                                                <!--class="glyphicon glyphicon-calendar"></i></button>-->
							            <!--</span>-->
                                        <!--</p>-->
                                    <!--</div>-->
                                    <!--<div class="coll-md-1">-->
                                        <!--<select ng-model="ctrlScope.first1.hour" class="form-control"-->
                                                <!--ui-select2="selectOptions" required>-->
                                            <!--<option value="" disabled selected hidden>时</option>-->
                                            <!--<option ng-repeat="hour in getHours()" value="{{hour}}">{{hour}}</option>-->
                                        <!--</select>-->
                                    <!--</div>-->
                                    <!--<div class="coll-md-1">-->
                                        <!--<select ng-model="ctrlScope.first1.min" class="form-control"-->
                                                <!--ui-select2="selectOptions" required>-->
                                            <!--<option value="" disabled selected hidden>分</option>-->
                                            <!--<option ng-repeat="min in getMins()" value="{{min}}">{{min}}</option>-->
                                        <!--</select>-->
                                    <!--</div>-->
                                <!--</div>-->
                            <!--</div>-->
                        <!--</div>-->
                        <div class="row">
                            <div class="col-md-2">
                                <div class="form-group">
                                    <label class="control-label col-md-12">审核状态</label>
                                </div>
                            </div>
                            <div class="col-md-10">
                                <div class="form-group">
                                    <div class="col-md-12">
                                        <label class="radio-inline">
                                            <input type="radio" name="firstVerifyStatus" value="1"
                                                   ng-model="ctrlScope.first.firstVerifyStatus" required>
                                            通过 </label>
                                        <label class="radio-inline">
                                            <input type="radio" name="firstVerifyStatus" value="2"
                                                   ng-model="ctrlScope.first.firstVerifyStatus" required>
                                            退回 </label>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-2">
                                <div class="form-group">
                                    <label class="control-label col-md-12" name="firstVerifyContent">审核内容</label>
                                </div>
                            </div>
                            <div class="col-md-10">
                                <div class="form-group">
                                    <div class="col-md-12">
                                        <textarea name="verifyContent" class="form-control" rows="5"
                                                  ng-model="ctrlScope.first.firstVerifyContent" required></textarea>
                                    </div>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
            <div class="buttonArea col-md-12">
                <button type="submit" class="btn blue" ng-disabled="myForm.$invalid">提交</button>
            </div>
        </div>
    </form>
</modal>

